home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.mpw < prev    next >
Text File  |  1996-07-05  |  5KB  |  129 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler
  29. *
  30. * Version Creation Date:   3/4/91
  31. *
  32. * $Revision: 2.5 $
  33. *
  34. * File Description:
  35. *        system dependent header
  36. *        MPW version
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name        Description of modification
  41. * -------  ----------  -----------------------------------------------------
  42. * 3/4/91   Kans        #include <String.h> as well as <Strings.h>
  43. *
  44. * ==========================================================================
  45. */
  46. #ifndef _NCBILCL_
  47. #define _NCBILCL_
  48.  
  49. /* PLATFORM DEFINITION FOR MACINTOSH UNDER MPW */
  50.  
  51. #define COMP_MPW
  52. #define OS_MAC
  53. #define PROC_MC680X0
  54. #define WIN_MAC
  55.  
  56. /*----------------------------------------------------------------------*/
  57. /*      Desired or available feature list                               */
  58. /*----------------------------------------------------------------------*/
  59.  
  60. /*----------------------------------------------------------------------*/
  61. /*      #includes                                                       */
  62. /*----------------------------------------------------------------------*/
  63. #include <stdio.h>
  64. #include <ctype.h>
  65. #include <stdlib.h>
  66. #include <Memory.h>
  67. #include <String.h>
  68. #include <Strings.h>
  69. #include <Math.h>
  70. #include <errno.h>
  71. #include <limits.h>
  72. #include <float.h>
  73.  
  74. /*----------------------------------------------------------------------*/
  75. /*      Missing ANSI-isms                                               */
  76. /*----------------------------------------------------------------------*/
  77. #ifndef FILENAME_MAX
  78. #define FILENAME_MAX 255
  79. #endif
  80. #ifndef PATH_MAX
  81. #define PATH_MAX 255
  82. #endif
  83.  
  84. /*----------------------------------------------------------------------*/
  85. /*      Aliased Logicals, Datatypes                                     */
  86. /*----------------------------------------------------------------------*/
  87.  
  88. /*----------------------------------------------------------------------*/
  89. /*      Misc Macros                                                     */
  90. /*----------------------------------------------------------------------*/
  91. #define PROTO(x)    x    /* Function prototypes are real */
  92. #define VPROTO(x)    x    /* Prototype for variable argument list */
  93. #define DIRDELIMCHR    ':'
  94. #define DIRDELIMSTR    ":"
  95. #define CWDSTR    "."
  96.  
  97. #define KBYTE    (1024)
  98. #define MBYTE    (1048576)
  99.  
  100. #define IS_BIG_ENDIAN
  101.  
  102. /*----------------------------------------------------------------------*/
  103. /*      For importing MS_DOS code                                       */
  104. /*----------------------------------------------------------------------*/
  105. #define near
  106. #define far
  107. #define huge
  108. #define cdecl
  109. #define _pascal
  110. #define _near
  111. #define _far
  112. #define _huge
  113. #define _cdecl
  114.  
  115. /*----------------------------------------------------------------------*/
  116. /*      Macros for Floating Point                                       */
  117. /*----------------------------------------------------------------------*/
  118. #define EXP2(x) exp((x)*LN2)
  119. #define LOG2(x) (log(x)*(1./LN2))
  120. #define EXP10(x) exp((x)*LN10)
  121. #define LOG10(x) log10(x)
  122.  
  123. /*----------------------------------------------------------------------*/
  124. /*      Macros Defining Limits                                          */
  125. /*----------------------------------------------------------------------*/
  126. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  127.  
  128. #endif
  129.